All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Font

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Font

public class Font
extends NativeObject
implements Coding
This class wraps the Objective-C class NSFont.


Constructor Index

 o Font()
This default constructor is equivalent to Objective-C's [[NSFont alloc] init].
 o Font(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Font(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Method Index

 o advancementForGlyph(int)
A wrapper for the - advancementForGlyph: Objective-C instance method.
 o afmDictionary()
A wrapper for the - afmDictionary Objective-C instance method.
 o afmFileContents()
A wrapper for the - afmFileContents Objective-C instance method.
 o ascender()
A wrapper for the - ascender Objective-C instance method.
 o boldSystemFontOfSize(float)
A wrapper for the + boldSystemFontOfSize: Objective-C class method.
 o boundingRectForFont()
A wrapper for the - boundingRectForFont Objective-C instance method.
 o boundingRectForGlyph(int)
A wrapper for the - boundingRectForGlyph: Objective-C instance method.
 o capHeight()
A wrapper for the - capHeight Objective-C instance method.
 o controlContentFontOfSize(float)
A wrapper for the + controlContentFontOfSize: Objective-C class method.
 o descender()
A wrapper for the - descender Objective-C instance method.
 o displayName()
A wrapper for the - displayName Objective-C instance method.
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o encodingScheme()
A wrapper for the - encodingScheme Objective-C instance method.
 o familyName()
A wrapper for the - familyName Objective-C instance method.
 o fontName()
A wrapper for the - fontName Objective-C instance method.
 o fontWithNameAndSize(String, float)
A wrapper for the + fontWithName:size: Objective-C class method.
 o glyphIsEncoded(int)
A wrapper for the - glyphIsEncoded: Objective-C instance method.
 o glyphWithName(String)
A wrapper for the - glyphWithName: Objective-C instance method.
 o isBaseFont()
A wrapper for the - isBaseFont Objective-C instance method.
 o isFixedPitch()
A wrapper for the - isFixedPitch Objective-C instance method.
 o italicAngle()
A wrapper for the - italicAngle Objective-C instance method.
 o maximumAdvancement()
A wrapper for the - maximumAdvancement Objective-C instance method.
 o menuFontOfSize(float)
A wrapper for the + menuFontOfSize: Objective-C class method.
 o messageFontOfSize(float)
A wrapper for the + messageFontOfSize: Objective-C class method.
 o mostCompatibleStringEncoding()
A wrapper for the - mostCompatibleStringEncoding Objective-C instance method.
 o paletteFontOfSize(float)
A wrapper for the + paletteFontOfSize: Objective-C class method.
 o pointSize()
A wrapper for the - pointSize Objective-C instance method.
 o positionOfGylphForCharacterStruckOverRect(int, char, Rect)
A wrapper for the - positionOfGlyph:forCharacter:struckOverRect: Objective-C instance method.
 o preferredFontNames()
A wrapper for the + preferredFontNames Objective-C class method.
 o printerFont()
A wrapper for the - printerFont Objective-C instance method.
 o screenFont()
A wrapper for the - screenFont Objective-C instance method.
 o set()
A wrapper for the - set Objective-C instance method.
 o setPreferredFontNames(Array)
A wrapper for the + setPreferredFontNames: Objective-C class method.
 o setUserFixedPitchFont(Font)
A wrapper for the + setUserFixedPitchFont: Objective-C class method.
 o setUserFont(Font)
A wrapper for the + setUserFont: Objective-C class method.
 o systemFontOfSize(float)
A wrapper for the + systemFontOfSize: Objective-C class method.
 o titleBarFontOfSize(float)
A wrapper for the + titleBarFontOfSize: Objective-C class method.
 o toolTipsFontOfSize(float)
A wrapper for the + toolTipsFontOfSize: Objective-C class method.
 o underlinePosition()
A wrapper for the - underlinePosition Objective-C instance method.
 o underlineThickness()
A wrapper for the - underlineThickness Objective-C instance method.
 o useFont(String)
A wrapper for the + useFont: Objective-C class method.
 o userFixedPitchFontOfSize(float)
A wrapper for the + userFixedPitchFontOfSize: Objective-C class method.
 o userFontOfSize(float)
A wrapper for the + userFontOfSize: Objective-C class method.
 o widthOfString(String)
A wrapper for the - widthOfString: Objective-C instance method.
 o xHeight()
A wrapper for the - xHeight Objective-C instance method.

Constructors

 o Font
 protected Font(boolean shouldAllocate,
                int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Font
 public Font()
This default constructor is equivalent to Objective-C's [[NSFont alloc] init].

 o Font
 public Font(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o fontWithNameAndSize
 public static native Font fontWithNameAndSize(String fontName,
                                               float fontSize)
A wrapper for the + fontWithName:size: Objective-C class method.

 o useFont
 public static native void useFont(String fontName)
A wrapper for the + useFont: Objective-C class method.

 o userFontOfSize
 public static native Font userFontOfSize(float fontSize)
A wrapper for the + userFontOfSize: Objective-C class method.

 o userFixedPitchFontOfSize
 public static native Font userFixedPitchFontOfSize(float fontSize)
A wrapper for the + userFixedPitchFontOfSize: Objective-C class method.

 o setUserFont
 public static native void setUserFont(Font aFont)
A wrapper for the + setUserFont: Objective-C class method.

 o setUserFixedPitchFont
 public static native void setUserFixedPitchFont(Font aFont)
A wrapper for the + setUserFixedPitchFont: Objective-C class method.

 o systemFontOfSize
 public static native Font systemFontOfSize(float fontSize)
A wrapper for the + systemFontOfSize: Objective-C class method.

 o boldSystemFontOfSize
 public static native Font boldSystemFontOfSize(float fontSize)
A wrapper for the + boldSystemFontOfSize: Objective-C class method.

 o titleBarFontOfSize
 public static native Font titleBarFontOfSize(float fontSize)
A wrapper for the + titleBarFontOfSize: Objective-C class method.

 o menuFontOfSize
 public static native Font menuFontOfSize(float fontSize)
A wrapper for the + menuFontOfSize: Objective-C class method.

 o messageFontOfSize
 public static native Font messageFontOfSize(float fontSize)
A wrapper for the + messageFontOfSize: Objective-C class method.

 o paletteFontOfSize
 public static native Font paletteFontOfSize(float fontSize)
A wrapper for the + paletteFontOfSize: Objective-C class method.

 o toolTipsFontOfSize
 public static native Font toolTipsFontOfSize(float fontSize)
A wrapper for the + toolTipsFontOfSize: Objective-C class method.

 o controlContentFontOfSize
 public static native Font controlContentFontOfSize(float fontSize)
A wrapper for the + controlContentFontOfSize: Objective-C class method.

 o pointSize
 public native float pointSize()
A wrapper for the - pointSize Objective-C instance method.

 o fontName
 public native String fontName()
A wrapper for the - fontName Objective-C instance method.

 o familyName
 public native String familyName()
A wrapper for the - familyName Objective-C instance method.

 o displayName
 public native String displayName()
A wrapper for the - displayName Objective-C instance method.

 o set
 public native void set()
A wrapper for the - set Objective-C instance method.

 o widthOfString
 public native float widthOfString(String string)
A wrapper for the - widthOfString: Objective-C instance method.

 o screenFont
 public native Font screenFont()
A wrapper for the - screenFont Objective-C instance method.

 o printerFont
 public native Font printerFont()
A wrapper for the - printerFont Objective-C instance method.

 o isBaseFont
 public native boolean isBaseFont()
A wrapper for the - isBaseFont Objective-C instance method.

 o boundingRectForFont
 public native Rect boundingRectForFont()
A wrapper for the - boundingRectForFont Objective-C instance method.

 o boundingRectForGlyph
 public native Rect boundingRectForGlyph(int aGlyph)
A wrapper for the - boundingRectForGlyph: Objective-C instance method.

 o advancementForGlyph
 public native Size advancementForGlyph(int ag)
A wrapper for the - advancementForGlyph: Objective-C instance method.

 o afmDictionary
 public native Dictionary afmDictionary()
A wrapper for the - afmDictionary Objective-C instance method.

 o afmFileContents
 public native String afmFileContents()
A wrapper for the - afmFileContents Objective-C instance method.

 o glyphIsEncoded
 public native boolean glyphIsEncoded(int aGlyph)
A wrapper for the - glyphIsEncoded: Objective-C instance method.

 o preferredFontNames
 public static native Array preferredFontNames()
A wrapper for the + preferredFontNames Objective-C class method.

 o setPreferredFontNames
 public static native void setPreferredFontNames(Array fontNameArray)
A wrapper for the + setPreferredFontNames: Objective-C class method.

 o maximumAdvancement
 public native Size maximumAdvancement()
A wrapper for the - maximumAdvancement Objective-C instance method.

 o mostCompatibleStringEncoding
 public native int mostCompatibleStringEncoding()
A wrapper for the - mostCompatibleStringEncoding Objective-C instance method.

 o underlinePosition
 public native float underlinePosition()
A wrapper for the - underlinePosition Objective-C instance method.

 o underlineThickness
 public native float underlineThickness()
A wrapper for the - underlineThickness Objective-C instance method.

 o italicAngle
 public native float italicAngle()
A wrapper for the - italicAngle Objective-C instance method.

 o capHeight
 public native float capHeight()
A wrapper for the - capHeight Objective-C instance method.

 o xHeight
 public native float xHeight()
A wrapper for the - xHeight Objective-C instance method.

 o ascender
 public native float ascender()
A wrapper for the - ascender Objective-C instance method.

 o descender
 public native float descender()
A wrapper for the - descender Objective-C instance method.

 o isFixedPitch
 public native boolean isFixedPitch()
A wrapper for the - isFixedPitch Objective-C instance method.

 o encodingScheme
 public native String encodingScheme()
A wrapper for the - encodingScheme Objective-C instance method.

 o glyphWithName
 public native int glyphWithName(String aName)
A wrapper for the - glyphWithName: Objective-C instance method.

 o positionOfGylphForCharacterStruckOverRect
 public native Point positionOfGylphForCharacterStruckOverRect(int aGlyph,
                                                               char aChar,
                                                               Rect aRect)
A wrapper for the - positionOfGlyph:forCharacter:struckOverRect: Objective-C instance method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index